package cn.tedu.innerclass;

/**
 * @author :Colin
 * @version 创建时间: 2021/6/25 15:49
 */
public class TestInner4 {
    public static void main(String[] args) {
        new Outer4().show();
    }

}
class Outer4{
    public void show(){

        /*如何使用内部类资源*/
        class Inner4{
            int age;
            String name;

            public void eat(){
                System.out.println("iNNER4..EAT");
            }

        }
        Inner4 in=new Inner4();
        in.eat();
        System.out.println(in.name);

    }

}
